<?php
/**
 * 
 * @author Paolo Bertuzzo
 *
 */
namespace Catalog\Helper;

use Zend\View\Helper\Partial;
use Utilities\Session\SessionFacade;

class MenuHelper extends Partial
{

    /**
     * (non-PHPdoc)
     *
     * @see \Zend\View\Helper\Partial::__invoke()
     */
    public function __invoke($name = NULL, $values = NULL)
    {
        return parent::__invoke('helper/menu', array(
        	'locale' => $this->getLocale()
        ));
    }
    
    /**
     *
     */
    private function getLocale()
    {
    	$sessionFacade = new SessionFacade();
    	 
    	return $sessionFacade->getLocale();
    }
    
}

?>